package com.bjpowernode.servlet;

import java.io.IOException;
import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.PrintWriter;
public class HelloServlet implements Servlet {

    public void init(ServletConfig config) throws ServletException {

    }

    public void service(ServletRequest req, ServletResponse res)
            throws ServletException, IOException {
        System.out.println("Hello Servlet");
    }


    public void destroy() {

    }


    public String getServletInfo() {
        return "My First Servlet";
    }


    public ServletConfig getServletConfig() {
        return null;
    }
}